import {AxiosRequestConfig} from "axios";
import {HttpCodeEnum, MethodEnum} from "/@/utils/http/axios/enum/method-enum";

export interface CreateAxiosOptions extends AxiosRequestConfig {
    //基础url
    baseURL: string
}



/**
 * 参数模型
 */
export interface ParamModel {
    params?: object
    data?: object
}
/**
 * 请求返回值
 */
export interface Result {
    code: HttpCodeEnum,
    msg?: string,
    data?: object
}
/**
 * http返回值
 */
export interface HttpResult{
    config: object,
    data: Result,
    header?: object,
    request?: object,
    status: number,
    statusText: string,
    headers: object

}

export interface HttpConfig{
    callBack?: Function,
    isHint?: Boolean,
    isToken?: Boolean
}